package com.tm.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tm.dto.DishDTO;
import com.tm.dto.DishDTOD;
import com.tm.entity.DishEntity;

import java.util.List;

/**
 * @author huangp
 * @create 2023-04-05 10:33
 */
public interface DishService extends IService<DishEntity> {

    Page<DishEntity> pageList(Integer page, Integer pageSize, DishDTO dishDTO);
    // Boolean saveWithFlavor(DishEntity dishEntity);
    void saveWithFlavor(DishDTOD dishDTOD);
    Boolean updateIds(List<Long> ids);
    DishDTOD getByIfwithFlavor(Long id);

    void dishStatusByStatus(Integer status, List<Long> ids);

    void updateWithFlavor(DishDTOD dishDTOD);
}
